package top.z.work.module.system.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import top.z.work.framework.orm.core.BaseEntity;

import java.io.Serial;
import java.io.Serializable;

/**
 * 系统路由实体类
 *
 * @author zaoangod
 * @since 2024-07-25
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Table(value = "system_route")
public class SystemRoute extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    // 菜单主键
    @Id
    private Long    identity;
    // 上级菜单
    private Long    parent;
    // 菜单名称
    private String  name;
    // 菜单图标
    private String  icon;
    // 权限标识
    private String  authority;
    // 路由地址
    private String  path;
    // 页面组件
    private String  component;
    // 菜单类型(1.目录;2.菜单;3.按钮)
    private Integer type;
    // 菜单排序
    private Integer sort;
    // 显示状态(只有1.目录;2.菜单使用)
    private Integer visible;
    // 数据状态(0.正常;1.停用)
    private Integer status;

}
